﻿@{
    ViewBag.Title = "OrderMessage";
}
<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    th {
        width: 180px;
    }

    td {
        text-align: center;
    }
</style>
<form action="#" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="8">
                <h2 class="aa">订单信息列表</h2>
            </th>
        </tr>
        <tr>
            <th>订单编号</th>
            <th>客户编号</th>
            <th>总价</th>
            <th>收货人</th>
            <th>联系电话</th>
            <th>地址</th>
            <th>当前状态</th>
            <th>修改</th>
        </tr>
        @foreach (var item in ViewBag.tt)
        {
            <tr>
                <td>@item.AddressId</td>
                <td>@item.UserId</td>
                <td>@item.OrderAmount</td>
                <td>@item.Name</td>
                <td>@item.phone</td>
                <td>@item.AddressValue</td>
                <td><a href="../Comment/UpdateOreder?OrderId=@item.OrderId">@(item.OrderState == 1 ? "未处理" : "已处理")</a></td>
                <td><a href="../Comment/UpdateOrderMessage?AddressId=@item.AddressId">修改</a></td>
            </tr>       
        }
    </table>
</form>


